@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif
}




main {
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.product-content {
  display: flex;
  align-items: flex-start;
  gap: 20px; /* Space between image and details */
}

.product-image img {
  max-width: 300px;
  height: auto;
  border-radius: 18px;
  overflow: hidden; /* Ensure zoomed image does not overflow the container */
  position: relative; /* Relative positioning for the container */
}

/* Zoom effect on the product image */
.product-image img {
  width: 100%; /* Ensure image fits the container */
  height: auto; /* Maintain aspect ratio */
  transition: transform 0.3s ease; /* Smooth zoom effect */
}

.product-image img:hover {
  transform: scale(1.1); /* Adjust zoom level as needed */
  cursor: pointer; /* Change cursor to pointer for better UX */
}

.product-details {
  flex: 1;
}


.product-categories ul {
  list-style-type: none;
  padding: 0;
}

.product-categories li {
  margin-bottom: 5px;
}

.product-categories a {
  color: #007BFF;
  text-decoration: none;
}

.product-categories a:hover {
  text-decoration: underline;
}

.add-to-cart {
  margin-top: 20px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.quantity-btn {
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  width: 40px;
  text-align: center;
}

#quantity {
  width: 60px;
  text-align: center;
  font-size: 18px;
  margin: 0 10px;
}

.add-to-cart-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 5px;
}

.add-to-cart-btn:hover {
  background-color: #218838;
}



h2 {
  
  padding-bottom: 10px;
  margin-bottom: 20px;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  margin-bottom: 10px;
}

a {
  color: #007BFF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.product-details {
  margin-top: 20px;
}

.tabs {
  display: flex;
  margin-bottom: 20px;
}

.tab-button {
  background-color: #f1f1f1;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  margin-right: 10px;
}

.tab-button.active {
  background-color: #007bff;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.product-features ul {
  list-style-type: disc;
  padding-left: 20px;
}

.product-reviews form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quantity-selector {
  display: flex;
  align-items: center;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  font-size: 16px;
  text-align: center;
}

.add-to-cart-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

/* Styles specifically for the review section's input fields */
.product-reviews form input[type="text"],
.product-reviews form input[type="email"] {
    width: 100%; /* Adjust this value as needed */
    max-width: 300px; /* Set a max-width to control the size */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.product-reviews form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical; /* Allows vertical resizing */
}
.product-reviews form button[type="submit"] {
  align-self: flex-start; /* Align button to the left */
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

.product-reviews form button[type="submit"]:hover {
  background-color: #0056b3;
}


#rating {
  display: flex;
  direction: row-reverse;
  justify-content: flex-start;
  gap: 5px;
  font-size: 24px;
}

#rating input[type="radio"] {
  display: none; /* Hide radio buttons */
}

#rating .star {
  cursor: pointer;
  color: #ddd; /* Default color */
}

#rating input[type="radio"]:checked ~ .star {
  color: #ffcc00; /* Highlight color for selected stars */
}

/* Styles for the save information checkbox */
.save-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.save-info input[type="checkbox"] {
  accent-color: #007bff; /* Custom color for the checkbox */
}

.save-info label {
  font-size: 14px;
  line-height: 1.5;
}


/* Styles for the Related Products section */
#related-products {
  padding: 20px;
  background-color: #f8f8f8;
}

#related-products h2 {
  text-align: center;
  margin-bottom: 20px;
}

.related-products-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.related-product {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 200px; /* Adjust width as needed */
  text-align: center;
  padding: 10px;
  position: relative; /* Ensure the container has relative positioning */
  overflow: hidden; /* Ensure zoom effect stays within the container */
}

.related-product img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease; /* Smooth zoom effect */
  cursor: pointer; /* Change cursor to pointer for better UX */
}

.related-product img:hover {
  transform: scale(1.1); /* Adjust zoom level as needed */
}

.related-product h3 {
  font-size: 16px;
  margin: 10px 0;
}

.related-product p {
  font-size: 14px;
  color: #007bff; /* Price color */
}

.related-product a {
  text-decoration: none;
  color: inherit;
}

.related-product a:hover {
  text-decoration: underline;
}




